<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>荣誉列表-称号能力</title>
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/dpl.css" rel="stylesheet">
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/bui.css" rel="stylesheet">
<script src="http://g.tbcdn.cn/fi/bui/jquery-1.8.1.min.js"></script>
<script src="http://g.alicdn.com/bui/seajs/2.3.0/sea.js"></script>
<script src="http://g.alicdn.com/bui/bui/1.1.10/config.js"></script>
<script src="/assets/kxdr/honor.js"></script>
<script src="/assets/shopmanage/global_menu_jquery.js"></script>
</head>
<body style="width:990px;margin:0 auto;padding:10px 0;">
<input type="hidden" class="tcfg" value="{$tcfg.cfg|default:""}" />
 <div class="doc-content">
    <div class="panel">
      <div class="panel-body">
	  <div class="row">
		<div class="span24 doc-content">
		<h3 class="pull-left">{$L.APP_HOME} >> {$L.APP_NAME} >>  荣誉列表</h3>
	<div class="button-group pull-right">
	  {include file='../../../PublicView/global_menu.html'}
    </div>
		</div>
	  </div>
	  <hr />
	  	<div class="button-group">
		  <a class="button js-addhonor"><i class="icon-pencil"></i>添加称号</a>
		  <a class="button"><i class="icon-user"></i>称号排行</a>
		  <!-- {if $tp=="crash"}
		  <a href="/?m=Kxdr&c=Honor" class="button button-success"><i class="icon-th icon-white"></i>所有称号</a>
		  {else}
		  <a href="/?m=Kxdr&c=Honor&tp=crash" class="button"><i class="icon-trash"></i>回收站</a>
		  {/if} -->
		</div>
		<hr />
	  		<div id="tab" class="bui-tab-panel bui-tab nav-tabs" aria-disabled="false" aria-pressed="false">
				<ul style="font-size:14px">
				  <li class="bui-tab-panel-item active bui-tab-item" aria-disabled="false"><a href="/?m=Kxdr&c=Honor&tp={$tp}">{if $tp=='crash' }<i class="icon-trash"></i>{/if}荣誉称号</a></li>
				  <li class="bui-tab-panel-item  bui-tab-item" aria-disabled="false" aria-pressed="false"><a href="/?m=Kxdr&c=Medal&tp={$tp}">{if $tp=='crash' }<i class="icon-trash"></i>{/if}成就奖章</a></li></ul>
				  {if $tp=='crash' }
				  <li class="bui-tab-panel-item bui-tab-item"><a href="/?m=Kxdr&c=Honor">返回</a></li>
				  {/if}
				</ul>
				{if $tp!='crash' }
				<div class="button-group pull-right">
				  <a href="/?m=Kxdr&c=Honor&a=offical_preview" class="button " >导入官方称号</a>
				</div>
				{/if}
			</div>
        <div id="panel" class="span24 " style="margin-top:10px;min-height:400px;">
			<div class="form-horizontal" id="p2">
	  <div class="row">
  <div class="doc-content">
		<div class="tips tips-large tips-success tips-no-icon " style="margin-bottom:10px">
          <div class="tips-content">
		  {if $tp!='crash'}
            <h2>荣誉称号规则</h2>
            预测能力与荣誉称号对应。预测能力公式：每次活动参与获得<span class="badge badge-info">{$tcfg.cfg.honor_title.action|default:"0"}分</span>，完全猜中加<span class="badge badge-info">{$tcfg.cfg.honor_title.exact|default:"0"}分</span>，没猜中加<span class="badge badge-info">{$tcfg.cfg.honor_title.fault|default:"0"}分</span>。<button class="button button-small js-setcfg">设置</input>
          {/if}
		  </div>
		  <div id="b1" class="pull-right">
			<ul class="bui-bar button-group " role="toolbar" id="bar4" aria-disabled="false" aria-pressed="false">
			<a href="/?m=Kxdr&c=Honor" class="bui-bar-item button button-small {if $tp!='crash'}button-info{/if} bui-inline-block  js-empty" aria-disabled="false"  aria-pressed="false"><i class="icon-th {if $tp!='crash'}icon-white{/if}"></i>所有</a>
			<a href="/?m=Kxdr&c=Honor&tp=crash" class="bui-bar-item button button-small {if $tp=='crash'}button-info{/if} bui-inline-block  js-empty" aria-disabled="false"  aria-pressed="false"><i class="icon-trash {if $tp=='crash'}icon-white{/if}"></i>回收站</a>
			<a href="/?m=Kxdr&c=Honor&a=offical_preview" class="bui-bar-item button button-small  bui-inline-block  js-empty" aria-disabled="false"  aria-pressed="false"><i class="icon-download-alt"></i></a>
			</ul>
		  </div>
		  <br class="clearfix" />
        </div>
    <ul class="clearfix" style="position:relative">
	<!-- <span class="x-icon x-icon-error pull-right"><i class=" icon-caret-down icon-white"></i></span> -->
	{foreach from=$honors item=honor key=key}
	<li class=" breadcrumb span4 " style="margin-left:10px;position:absolute">
	<p>预测能力：<span class="badge badge-info "><span class="score{$key}">{$honor.score}</span>分</span></p>
	<p><h3>称号：<span class="title{$key}">{$honor.title}</span></h3></p>
	<p class="auxiliary-text">
	<span class="x-icon x-icon-small x-icon-success js-edit" data-ac="edit" data-id={$key}><i class="icon icon-pencil icon-white"></i></span>
	{if $tp == "crash"}
	<span class="x-icon x-icon-small x-icon-warning js-edit" data-ac="right" data-id={$key}><i class="icon icon-repeat icon-white"></i></span>
	{else}
	<span class="x-icon x-icon-small x-icon-error js-edit" data-ac="delete" data-id={$key}><i class="icon icon-trash icon-white"></i></span>
	{/if}
	</p>
	</li>
	{/foreach}
	</ul>
    <div>
      <div class="pagination pull-right">
        <ul>
          {$show}
        </ul>
      </div>
    </div>
</div>

      </div>
	  </div></div>
    </div>
  </div>
  <div id="content" class="hide">
	<form id="J_Form" class="form-horizontal bui-form-horizontal bui-form bui-form-field-container" aria-disabled="false" method="get" action="" aria-pressed="false">
		<div class="row">
		  <div class="control-group span15">
			<label class="control-label">每次参与增加：</label>
			<div class="controls">
			  <input type="text" class="pull-left span2 control-text action" data-rules="{ldelim}required:true{rdelim}" data-msg="只要参与就增加的分值" value="{$tcfg.cfg.honor_title.action|default:"0"}" aria-disabled="false" aria-pressed="false">
			  能力值
			</div>
		  </div>
		</div><div class="row">
		  <div class="control-group span15">
			<label class="control-label">完全猜中增加：</label>
			<div class="controls">
			  <input type="text" class="pull-left span2 control-text exact" data-rules="{ldelim}required:true{rdelim}" data-msg="完全猜中增加的分值" value="{$tcfg.cfg.honor_title.exact|default:"0"}" aria-disabled="false" aria-pressed="false">
			  能力值
			</div>
		  </div>
		</div><div class="row">
		  <div class="control-group span15">
			<label class="control-label">没猜中增加：</label>
			<div class="controls">
			  <input type="text" class="pull-left span2 control-text fault" data-rules="{ldelim}required:true{rdelim}" data-msg="没猜中增加的分值" value="{$tcfg.cfg.honor_title.fault|default:"0"}" aria-disabled="false" aria-pressed="false">
			  能力值
			</div>
		  </div>
		</div>
	</form>
  </div>  
  <div id="honor" class="hide">
	<form id="H_Form" class="form-horizontal bui-form-horizontal bui-form bui-form-field-container" aria-disabled="false" method="get" action="" aria-pressed="false">
		<input type="hidden" class="ac" value="add" />
		<input type="hidden" class="id" value="" />
		<div class="row">
		  <div class="control-group span15">
			<label class="control-label">预测能力值：</label>
			<div class="controls">
			  <input type="text" class="pull-left span2 control-text target_score" data-rules="{ldelim}required:true{rdelim}" data-msg="请填入需要的预测能力值" value="" aria-disabled="false" aria-pressed="false">
			  能力值
			</div>
		  </div>
		</div><div class="row">
		  <div class="control-group span15">
			<label class="control-label">荣誉称号：</label>
			<div class="controls">
			  <input type="text" class="pull-left span2 control-text target_title" data-rules="{ldelim}required:true{rdelim}" data-msg="请填入荣誉称号" value="" aria-disabled="false" aria-pressed="false">
			  可获得的称号
			</div>
		  </div>
		</div>
	</form>
  </div>
</body>
</html>